package basic.socket.tcp;

import java.io.IOException;
import java.io.OutputStream;
import java.net.Socket;

/**
 * @author bingo
 * @Description
 * @Date 2018/7/18
 */
public class ClientDemo1 {

    public static void main(String[] args) {
        for (int i = 0; i < 3; i++) {
         try {
            Socket socket = new Socket("127.0.0.1", 8888);
                OutputStream fos;
                fos = socket.getOutputStream();
                fos.write("asdfdsf".getBytes());
              } catch(IOException e){
                e.printStackTrace();
            }
        }

    }

}
